﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LowLevelGraphics.Filter
{
    /// <summary>
    /// 
    /// </summary>
    public class ShenCastan : BaseImageFilter
    {
        protected double b = 0.9f;
        protected double low_thresh = 20;
        protected double high_thresh = 22;
        protected double ratio = 0.99f;
        int window_size = 7;
        int do_hysteresis = 1;
        int nr, nc;
        float lap;
        int thinFactor;

        /// <summary>
        /// Initializes a new instance of the <see cref="ShenCastan"/> class.
        /// </summary>
        public ShenCastan()
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="ShenCastan"/> class.
        /// </summary>
        /// <param name="_shenCastan">The _shen castan.</param>
        internal ShenCastan(ShenCastan _shenCastan)
        {
        }

        /// <summary>
        /// Execute this Filter
        /// A Debug Statement is written if a concrete Filter is called
        /// </summary>
        /// <param name="_bitmap"></param>
        /// <returns></returns>
        public override UnsafeBitmap Execute(UnsafeBitmap _bitmap)
        {
            return base.Execute(_bitmap);
        }

        /// <summary>
        /// This is used to clone a filter, each filter must implement it's own clone functionality
        /// </summary>
        /// <returns></returns>
        public override object Clone()
        {
            return new ShenCastan(this);
        }
    }
}
